Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline templates - ability to specify the directory when cloning #190

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

dennis-behm
Copy link
Member

In some situations the git repository has a different name than what is used as the application for the build phase ( see -a for the templates, or --application in zAppBuild). Be aware, that subsequent steps of the templates leverage the application parameter to locate the git repository of the application that is processed in the pipeline.

In the case when the project/repository name differs to the application name, leverage the new option on the gitClone.sh script to specify the directory during the clone operation.

The parameter is then used as the directory when cloning: https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-ltdirectorygt

Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Copy link
Collaborator

@M-DLB M-DLB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for implementing this enhancement :)

@M-DLB M-DLB merged commit 9e7d55c into IBM:main Nov 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants